<template>
  <Card v-ab-load="'/org/user/get'" data-target="data">
  <abSave slot="title" url="/org/user/save" :model="data" backRouter="userManager">  其他更多按钮</abSave>
  <Form :model="data" :label-width="80" style="max-width: 500px">
    <FormItem label="姓名">
      <Input v-model="data.fullname"></Input>
    </FormItem>
    <FormItem label="账号">
      <Input v-model="data.account"></Input>
    </FormItem>
    <FormItem label="密码">
      <Input v-model="data.password"></Input>
    </FormItem>
    <FormItem label="邮箱">
      <Input v-model="data.email"></Input>
    </FormItem>
    <FormItem label="手机">
      <Input v-model="data.mobile"></Input>
    </FormItem>
    <FormItem label="微信">
      <Input v-model="data.weixin"></Input>
    </FormItem>
    <FormItem label="性别">
      <RadioGroup v-model="data.sex">
        <Radio label="男">男</Radio>
        <Radio label="女">女</Radio>
      </RadioGroup>
    </FormItem>
    <FormItem label="状态">
      <i-switch :value="data.status"  true-value="1" false-value="0"	>
      </i-switch>
    </FormItem>
    <FormItem label="地址">
      <Input v-model="data.address" type="textarea" :autosize="{minRows: 2,maxRows: 5}"></Input>
    </FormItem>
  </Form>
  </Card>
</template>

<script>
  export default {
    name: 'userEdit',
    data() {
      return {
        data:{
        	fullname:"小王"
        },
        loading:false
      }
    },
    methods: {
      tosave () {
        this.loading = true;
      }
    },
    created: function () {
      console.info(this.$route.params.id);
    },
  }
</script>
